package com.ufind.server.application.impl;

import com.ufind.server.application.UserApplication;
import com.ufind.server.core.domain.User;

import javax.inject.Inject;
import javax.inject.Named;

/**
 * Application层主要处理实体Bean之间的关系，有单个实体bean时使用Service（Service是处理多个bean之间的关系的）
 * Created by xuliugen.Liu on 15/11/10.
 */
@Named
public class UserApplicationImpl implements UserApplication {

    @Inject
    private User user;

    public User getByUserAccount(String userAccount) {
        return null;
    }

    public Long insertUser(User user) {
        return this.user.insert(user);
    }
}
